package com.pateo.bjev.bjevvehicle.ui.util;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;

/**
 * Created by pateo on 17-5-31.
 */

public class ActivityUtil {
    public static void loadFragment(FragmentActivity activity, int containerId, Fragment fragment) {
        FragmentManager manager = activity.getSupportFragmentManager();
        manager.beginTransaction().replace(containerId, fragment).commit();
    }
}
